package lab03;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Test01 {
    public static void main(String[] args) {

        String path = "F:\\hello.txt";

        try {
            BufferedReader reader = new BufferedReader(new FileReader(path));
            String line ="";
            System.out.println(line);
            reader.close();

        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }

    /*
    * 读文件的基本操作：读一个文件并打印文件内容
    * */
        //1.字节流来读   1.1 一次读一行字符

    }
}